<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShowProfileWindows.aspx.cs" Inherits="Private_My_Profile_ShowProfileWindows" %>
<%@ Register TagPrefix="Flux" Namespace="Deepcode.Flux.Core.UI.Controls" Assembly="Deepcode.Flux.Core" %>
<html>
<head runat="server">
	<link href="../../../Asset/Style/GeneralStyle.css" rel="stylesheet" type="text/css" />
</head>
<body class="nopad">
<form id="form1" runat="server">
<Flux:HostTable runat="server">

<Flux:ValidationSummarySection runat="server" HeaderText="Please correct the following errors" ValidationGroup="form1"/>
<Flux:Section runat="server" Title="Your details">
<Flux:ShadePadBox runat="server">
	<table cellspacing="0" cellpadding="5" border="0" width="500">
	<tr><td>Identity:</td>
		<td><asp:Label runat="server" ID="Identity" CssClass="SafeLink"/></td>
	</tr>
	<tr><td>Name: <%=Required%></td>
		<td><asp:TextBox runat="server" ID="RealName" Width="250px" style="width:250px;"/></td>
	</tr>
	<tr><td>Email: <%=Required%></td>
		<td><asp:TextBox Runat="server" ID="EmailAddress" Width="250px" style="width:250px"/></td>
	</tr>
	</table>
</Flux:ShadePadBox>
</Flux:Section>

<Flux:CollapseSection runat="server" Title="Disable Taskpad items">
<Flux:ShadePadBox runat="server">
	<asp:TreeView runat="server" ID="_taskpadtree" ShowLines="true"></asp:TreeView>
</Flux:ShadePadBox>
</Flux:CollapseSection>


<Flux:Section runat="server">
<Flux:PadBox CssClass="Pad5Button" runat="server">
	<asp:Button runat="server" ID="btnUpdate" Text="Update details" OnClick="btnUpdateClick" ValidationGroup="form1"/>
	<asp:Label runat="server" ID="labUpdated" CssClass="SafeLink" Visible="false" Text="&nbsp;&nbsp;&nbsp;Your profile has been updated"/>
</Flux:PadBox>
</Flux:Section>

<!-- Validators for form 1 -->
<asp:RequiredFieldValidator runat="server" ControlToValidate="RealName" ErrorMessage="You must specify your name" Display="None" ValidationGroup="form1"/>
<asp:RequiredFieldValidator Runat="server" ControlToValidate="EmailAddress" ErrorMessage="You must specify the users email address" Display="None" ValidationGroup="form1"/>
<asp:RegularExpressionValidator ID="EmailRE" Runat="server" ControlToValidate="EmailAddress" ErrorMessage="The email address does not appear to be valid" Display="None" ValidationGroup="form1"/>
<asp:CustomValidator ID="EmailExists" Runat="server" ControlToValidate="EmailAddress" ErrorMessage="The email address is already registered on this system" Display="None" ValidationGroup="form1"/>

</Flux:HostTable>
</form>
</body>